import tushare as ts


df_sh_hist = ts.get_hist_data('sh', start='2009-01-01',
                                    end='2020-10-21')

print(df_sh_hist)

print("打印行情数据概览信息")
print(df_sh_hist.info())

print("查看行和列的轴标签")
print(df_sh_hist.axes)


'''
 0   open          607 non-null    float64
 1   high          607 non-null    float64
 2   close         607 non-null    float64
 3   low           607 non-null    float64
 4   volume        607 non-null    float64
 5   price_change  价格变动
 6   p_change      涨跌幅
 7   ma5           5~20日的移动平均值
 8   ma10          
 9   ma20          
 10  v_ma5         
 11  v_ma10        
 12  v_ma20        5~20日的移动平均量
'''